<%--
  Created by IntelliJ IDEA.
  User: 吴超
  Date: 2022/4/14
  Time: 13:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        span{
            color: red;
            font-size: 33px;
        }form{
            margin: auto;
                 }
    </style>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
      String user=(String)session.getAttribute("login");//object
    if(user!=null){
        request.getRequestDispatcher("main.jsp").forward(request,response);
    }
%>
<form action="controller.jsp" method="post">
    <p>用户名 <input type="text" name="name"> </p>
    <p>密码 <input type="text" name="pwd"></p>
    <p>登录类型  <input type="checkbox" name="checkbox" value="vip"> vip
        <input type="checkbox" name="checkbox" value="白嫖玩家"> 白嫖玩家
        <input type="checkbox" name="checkbox" value="氪金母猪"> 氪金母猪

    </p>
    <p>性别  男<input type="radio" name="sex" value="男">
        女<input type="radio" name="sex" value="女">
    </p>
    <p><input type="submit" name="stb" value="提交">

        <input type="reset" name="ret" value="重置">
    </p>
    <input type="hidden" name="op" value="load">
</form> <a href="register.jsp"><input type="button"  value="注册"></a>
<span><%=request.getParameter("isloading")==null?"":"账户或者密码错误"%></span>
<span><%=request.getParameter("illegal")==null?"":"非法入侵中转页，被打回"%></span>
<span><%=request.getParameter("registering1")==null?"":"注册成功，请立马登录"%></span>
<span><%=request.getParameter("registering2")==null?"":"注册失败"%></span>
<span><%=request.getParameter("logout")==null?"":"注销成功"%></span>
<span><%=request.getParameter("feifa")==null?"":"非法入侵成功界面，被打回"%></span>

</body>
</html>
